package com.example.supermarket.service;

import com.example.supermarket.entity.PageBean;
import com.example.supermarket.entity.User;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2023-10-13
 */
public interface UserService {

     User getUserById(int userId) ;


    User login(String userName, String userPwd);
	PageBean<User> getUsers(int pageNum, int pageSize, User user);
	void addUser(User user);
	boolean emailExists(String useremail);
	boolean nameExists(String username);
}
